<?php

class WSB_Db_Tables
{

	/**
	 * @var array
	 */
	static $_hashTable;

	/**
	 * @param string $table
	 * @param string $model
	 */
	public static function addTable($table, $model)
	{
		self::$_hashTable[$table] = $model;
	}

	/**
	 * @return array
	 */
	public static function getTables()
	{
		return self::$_hashTable;
	}

	/**
	 * @param string $table
	 * @return string
	 */
	public static function getDbClass($table)
	{
		if(self::hasDbClass($table)) {
			return self::$_hashTable[$table];
		}
		return null;
	}

	/**
	 * @param string $table
	 * @return boolean
	 */
	public static function hasDbClass($table)
	{
		return isset(self::$_hashTable[$table]);
	}

}
